<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Course extends Model
{
    protected $guarded = [];
    protected $table = 'Courses';
    public $timestamps = false;

    public function coach()
    {
        return $this->belongsTo(Coach::class,'club_id','club_id');
    }

    public function signlist()
    {
        return $this->hasMany('App\CourseSignup','courses_id');
    }

    public function admin()
    {
        return $this->belongsTo('App\Admin');
    }
}
